const path = require('path')
module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      // 配置那些文件需要自动导入/
      patterns: [path.join(__dirname, './src/styles/variables.less'),
        path.join(__dirname, './src/styles/mixins.less')]
    },
    chainWebpack: config => {
      config.module
        .rule('images')
        .use('url-loader')
        .loader('url-loader')
        .tap(options => Object.assign(options, { limit: 10000 }))
    }
  }
}
